import 'package:flutter/material.dart';

main(List<String> args) {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "你好，Flutter",
      theme: ThemeData(primarySwatch: Colors.yellow),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('你好，Flutter'),
        ),
        body: Center(
          child: Text(
            '我是麦叔，你好Flutter',
            style: Theme.of(context).textTheme.headline4,
          ),
        ),
      ),
    );
  }
}
